fix double pagination