Fix typo in isinstance call