Fixed permalinks

Some permalinks were badly constructed, resulting in faulty links.