Fix run_handler to consider action chains