Fixed an issue in foreign state reset: Differences in history length per state for projectiles were not properly take into account.