Fix component header by using instanceof and not .isInstanceOf