Fixing bug with watching files