Removed error in castRay

ok wat

where dis come from???