fix applet bug