Fixed a bug with watching the files.