Fixed small bug in applet