Correcting Z-index on selection