fix deprecation errors isa