fixed bug where DGI never changed state