Fix hats rendering order (z-index problem)