Add check for the minimum value of the maximum menu level

The current max level of the menu is used as the minimum value for the
menu. Closes #15