Fixed bson error