adjust patch for bug 3405
https://tracker.openpetra.org/view.php?id=3405