Fix deprecated variable access warnings
Merge pull request #3 from uu1101/fix-deprecated-variable-warnings

Fix deprecated variable access warnings