Join with selection bug fixed.