Move initialisation of created variable to top of UnitManager.update_from_unit().