Fixing issue with wrong require

Fixes #469
Merge pull request #472 from TheSerapher/issue-469

Fixing issue with wrong require