preserve entity references with 5 digits