fix stock nil problem in store