updated error in saving message