fix multiple tables join