fix bug in save labels dialog