updated pagination correction