Undo changes in cube query context