fixes z-indexgs