fix newid() call