Fixed errors in clip (no type set).
Some cases in assert of 'ininstance' instead of 'isinstance'. Found all and fixed.