fix issue #40
fix bug of indirectSelelct