fix: handler should be cloned in get_handler