fix inheriting error