Fixed pagination for reversed layouters.