Fixed reading of uninitialized state