fix some issues with scrolling menu

Similar to Issue #34.