Corrected a bug where the nearest neighbor user ID was wrongly returned.