fix primary key for BetaForm