fix multiplied contacts bug