fixed error with component.h