fix: instanceof -> isinstance