Fix code regarding unique partition index naming. Thanks to menardoram for the report.