Fix an array out of bounds exception in the menu. Fixes #2