fixed parameter passing issue on components