Fixed cmdb export bugs.