fix bug in fast_sync