Bug fix causing module not to load correctly from NPM