Fix phase id duplicate entry