Fix bson and json meta data