Fix z-value for popup items.