fix seed generator