Fix popover top and bottom.