Resource loading fix.