Fixed flexible menu displaying more items than it should