Fixed auto-planner adding unit issue