Changed instanceof case