fix bug with multiple opens of stores followed by a read