Fixed: nextval argument should be the name of the sequence, not the sequence itself.