Fixed the issue with package name for complex type of entities

Fixed the issue with package name for complex type of entities