fixed wrong z-index of HTML elements dragged from palette