Fix class name issue when components are extended