fix insatanceof