Fixed a missing flush call.