Fix resource file problems