Fixed endless syncing to disk the same file