minor fix to error messages