fixed .isInstanceOf(object, constructor)