Permalinks bug fixed