swf closing fix