Fix instanceof incorrect setup