Fix peco select history to run hooks