fixed z-ordering issue