Looking at ensureOpen, I would expect it to set count to -1?