Fix a bug in fastdsync