Debugging weird behavior in new Storage class