fixed ray matrix issue with points