z order bug fixed