Fix to shooting code