fix possible bug with z-index