fixed bug in param