fix color component type