Fixed a bug with calling methods from a class inside a module