Change target when get obstacle