Fixed a bug in rate calculation regarding endcaps!