Fixing table name reference