fix getNearestSingleEvent again