fix command history