fix Issue 10302 - Package module conflicts with package name
Fix segfault case