This should fix the bug where invalid sections are updated. As per our conversation @soffes.