fixed crash bug in cmd_resync