Patch provided by Daniel Jasinski Resolved bug-report http://www.openfoam.org/mantisbt/view.php?id=1843