fix getNearestSingleEvent and again