Fix the bug that `parent_module` for some classes may not have values.