correct z-order picking and rendering