Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1653 Thanks to Armin Wehrfritz for proposed fixes