fix ter err too big