Fixed RESX code generation