fixed bug in store_fail