fix for more than 99 atoms.