Fix duplicate IDs in form