Fixed a bug where backing out of a menu didn't select the previous menu's item properly

fixes #118