fixed #6 saving command history twice