Fixed bug where fatal moves were causing gradient to be calculated incorrectly.