Fixed crash

* Needed module was not required
* Function call to wrong module, causing call of undefined function