Fixing undefined var usage

Thanks to Beat Schweitzer for the report and
solution too.
Version upgrade