z-index bugfix

fix the bug when parents z-index  unset.