fixed a bug in seed