fix issue with trying to emit "stored" when there was actually an error