fix missing variable

fixes GH-41