Fixed problems with merge only joins in iterations.