Fix bug in retrieving params.