Sort Into Subfolder => Loop

Hi,
i'am new to hazel and try to do the following:
I Have a bunch of folders and sub folders. in all folders are pictures of different kinds.
What I want to achieve is to sort all dng and other raw files into subfolders.
My Rule looks like this:
Rule 1:
If kind is folder
then run rules on folder contents.
Rule 2:
if extension is not jpg
then move to sub folder with pattern "extension".
So far it runs fine. But after moving to the subfolder its is starting again so the files are moved again to a new subfolder ....
what do I have to do to terminate this?
Thanks in advance
Georg
i'am new to hazel and try to do the following:
I Have a bunch of folders and sub folders. in all folders are pictures of different kinds.
What I want to achieve is to sort all dng and other raw files into subfolders.
My Rule looks like this:
Rule 1:
If kind is folder
then run rules on folder contents.
Rule 2:
if extension is not jpg
then move to sub folder with pattern "extension".
So far it runs fine. But after moving to the subfolder its is starting again so the files are moved again to a new subfolder ....
what do I have to do to terminate this?
Thanks in advance
Georg