Remove flush to see if that gets rid of the header exceptions