Fix bug unlocked codes index