fix file history pagination