tag and categories pagination + bug fixes