Fix resource loader