fix a bug in match GUI