Fix execute-history widget to be able to call from command line