fix error in component validator