fix a bug in cmd_start_hopping.