fix a bug with inheritance