Fixed legend z-index problem