fixed destroying simulation applet