fix new server repo script bug