fixed passing parameters to components