Fix a bug where the mongodb sync returned the model itself, instead of its attributes