Fixing invalid z-index values