Minor fixes in resource load.
Merge remote-tracking branch 'origin/master'