Fix incorrect variable reference to include criteria