dynamic: fix error in rates calculation