bugfix error control bug