error in component type comparison