remove not needed -1 in endOffset of getEndNavDetails