fixed command history setting