Fix hung history proc