Fixed calling object instead of member function