Fix calling instance instead of class method