fixed incorrect component scoping