fix return argument of model.insert