fixed unit build bug