Fixed bug preventing permalink from updating.