Fix incorrect endpos when sildet is used during AGI record (bug 1210)