fix merchant clearing history bug