bugfix in ps1 for multiline overlap