fix(nginx): set the insync flag before continuing