the id for candidates is now stored correctly