fix redirect loop for joint classes