Fix deperecated variable access
Merge pull request #4 from ucam-cl-dtg/master

Fix deperecated variable access