Fixed history loading