Fixed storage of scan sates when converting from mha to cerr.