Prevent possible duplicate callbacks.