Workaround for file modifications being lost after first event