Fixed 3d bug, legacy code snuck in?