Fix bug in indirectInstanceOf.