Removed unnecessary Flush() call