Solved bug where all units had same stats as latest unit