Fix error on BSON/Mongodb