Fixed some parameters used in the error messages