Fix exception on iOS with lastModifiedValue