fix for zindex