Fix completed sections checking bug