Fix history prompt command