Fix pure virtual function checking