Fixes #198 - an undefined local variable that was causing failure