bug in inherit()