Bugfix: Regression; make sure that all data has been written
Authored by: jost_boekemeier 2009-03-21
Parent: [r777]
Child: [r779]