fix bugs of Simple Store
add destructor for simple store