Paginator uses only ul for class assignment, fixes for wrong branch