Fix checking of generator produced vars