input hist fixes