fix a problem with permalinks