Fix various errors that cause the menu to crash gamemode.

Note: Gamemode still crashes menu mode. But it demonstrates menu
functionality.