Fix z-index bug in iOS6