fix inmemorystorage problem