duplicate candidate error fixed