Modified algorithm of item position correction when list end is reached