Fix crash in AoS rayrend