CLI: fix bug at setup.py - history

This PR fix bug at `setup.py`'s `history` command.