Fix remove in InheritingsMap