Fix type to call method on object, not on module