Fixed the projectile bug