Fix bugs with the projectile shooting mechanism