fix bug model does not change