Fix code so broken test passes.