bug fix for forever file monitoring