Fix wrong generated class name invoking inner objects from another module