fixed directory watch bug