fix exception while checking for variable projections