fix sudden command bug