Off by one error in menu init