fixed an error message problem