fix an invalid component reference error