Fix bug in lastModifiedDelta handling