fix bugs when calling converter class