fix inheritance problem