Fix z index