fixed resUtil.generateRes