Fix permalink changes on multiple saves