fixed model converter to use integers