Remove flush which throw exception.