fix getparams function
fix