reset pstate->store_len as well?