another fix for supporting 5 digit entity references