setup script unique index bug fixed