fixing issue of passing ObjectId for string for SaveMessage method