fix missing target table for where condition