Bugfix: not checking class hierarchy of interfaces where not applicable