- fix small problem for reading resource files