fixed seeding issue