update seed, fix bug