If data error detected, switch automatically to program mode