h4x fixed useless idles between state changes