fix deprecated variable access method
Merge pull request #1 from propyless/dep_var_access

fix deprecated variable access method