Fixed clear method to work with subviews