Fix watching folder bug