Fix command history