Fixed xaml resource loading issues.