Fixed an error in rate of spread calculation