Fix #625 issue caused by unitialised variable
Merge pull request #633 from duncanspumpkin/fix_625

Fix #625