fix instanceof