Fix issue in component typing