fix bugs in seed

fix bugs in seed