remove empty JOINS