Fixed Messages API BSON Issues