Fix incorrect return from comparison steps loop