Undefined variable error corrected
Merge branch 'dev'