Implemented heuristic for wider default id translation. Close #1778.