fixed instanceof operators