fixed read history trouble code