Still err is not fixed - Not able to find correct loop point