fix api & model