Fixed a retarded distance function.