fixed seeding bug