fixed recovery from quit

recover gracefully to assign next category even when previous category
chosen was Quit