That one is probably not change notification going wrong. If your script renames a file, and then wants to do further things to it, the script has to use the new name, not the old one, after that point. If you don't have code to change which name/path the script is acting on, it's not going to work. (Doing everything else you want to do before you rename the file is much easier, as it avoids the whole issue.)