fixes issue 855. fixes pagnation, after api change of angular-ui