fixing error on virtual inheritance, should fix #20