fixed a bug due where the original parameter list was overwritten by the result.