fixed tiny error message reporting bug