Fixed log back to natural logarithm in affinity model