Fixing a menu wrap around bug.