fixing bug with defcomponent