improving invalid numeric ids fault tolerance