Fix ray rotating and position