fix the problem of calling parent class