Fix ResourceLoader error