history bug fixed.