Fix resource load.