fixed pagination for new angular-ui pagination api