alter model, fix bug