fix seed bug