history bug fixed