fix issue when pos=0 (pos head)