fix bad pagination
fix active selected table