Fix event's offset bug.