fixed bugs in coinhistory