Fix bson hash error