fix problem of menu not overflowing properly