Fixed bug where the closest distance and time priority methods were
reversed (opposite to that selected in the user dialog).