fix getNearestSingleEvent