Fix the inotify code