command history bug fixed.