Fix Hist SCript