fix bug where 'success' was being miscalculated with new context values instead  of ones prior to the action