finally fixed the permalinks