fix makeListOfObjectDirectionAndDistance