fixed ordering bug
join only once