fix bug in seed