Fixed watch task (find-and-replace gone wrong)