fix resource file error