Fixed issue with pretty permalinks

 Oops.