fix pagination issue introduced by cake2.5.5