KARAF-2982 - Command history is off by one