Fix scroll when cancel is pressed.