fix bug in store model