fix a bug in merchantv1