Fixed upgradeUIlayer Z order bug.