Fix categories and permalinks