fixed __len__ bug when store is empty