fix runtime error due to assert failure in XMLookAt