fix some problems with the parameters