fix bug(somtimes infinite-loop occurs)