fix errorcode length