Off-by-one error in mode menu (found by rwbarton)