Fixed bug with z-index