Fixed z-depth drawing in some scenes