fix 2d rendering and ordering