Fix resources loading which fails.