Hi Chris.. thanks a lot for the explanation and the fix!
Will you also backport this fix into 5.0.x version?