roll back bad query