fix when dirwatcher not avail