Fix invalid virtual function declaration