Make corrections to join statements