fixed recursive XAML loading