fixes bullet out of bounds bug