Fix drawing of methods and attributes in class