Attempt to fix instanceof.