Avoid numerical overflow with overlapping atoms