fix last_modified check