solve the negative ID-output problem.