fix problem where ad_active_slaves with only one entry prints out wrong
output