fixed error messages for messages