Fix tag pagination
Fix error on empty dirs. Fix #36