fix merchant clearing bug