fix the error about error message.