Fixing a bug that failed to loop through all relations containers