fixed a bug related to displaying error messages for default arguments