fix missing variable comparison

we missed this in #170