Fixed duplication bug and fixed respeccing