Fix variable access