3D view not showing correctly