Add fix for reracking when only one rack is used as source

Reracking was failing when the number of racks reracked was 1 (at least when I was testing it).