Fix statement pagination