Only register the event once.