fixed bug: no longer possible to enter a number that's out of bounds