fixed re-setting primary key for blocks table.