Fixed bug in table store