fixed a bug in ManageSeedling method