Fixed duplicate ids bug and score formatting