Bugfixes for concentration clamp code.