rollback near the end