fix bug that causes \extendmargin to affect all pages