fixing paths on permalinks