Corrected bug in joining REs. Corrected to work in 5.8.0