fix the problem of cancel not working in font face setting dialog