fix destroy() error under silverlight