Fix uninitialized variable access