fix bug: in save matches