Fixed applet bug