fixed a bug that was causing some corpuses to get lost