fix deleted_before_time/deleted_after_time scopes