Multiple inheritance does not work