Fix protected constructor issue.
Merge pull request #163 from discordier/hotfix/constructor

Fix protected constructor issue.