Fix permalink assert