Fix for produced unit spawning.