fix sorting and bulk actions