bugfix to beginning of pagination