Fixed bugs in projectile generation