Fixed infinite energy if withdrawing by automation