Fixed bug of set target call order.