ray shooting fix