fixed ray death issue