Fix raygun check