Fixed isinstance references