Fixed unnecessary flush