bug fix - rate will change accumulate on window resize