Swapped use of issubclass for isisntance