Bug fix for command history support.