fix calling class method from instance method