fixing depth rendering and winding order