Fix dist threshold.