fix ambiguous table name error