fixes permalinks