fix resource file gen