Fix potential error for repulsive forces