fixed bug in historicrecord (file not found)