Fix explicit join bug