Fixed destroy method for VisualState