fix bug when passing param