Fix an issue on hard/idle timeout.