Correct invalid variable access