Fixed bug about outputs staying on after stopping.