fixed error messages.