Fixed a NPE with the rayTrace method.