fix repo sync

Credit:Ryan