Fix event distance calculations