Fix flag var access