fixed unit serialization when it has no commands