fixed error in number menu

somehow one can't use 1-end directly in a bash switch. Here's a working fix for this