typo and added fsync