Fix small error in apply and revert sql for set us up the bomb