Bug lowess oth maint

same as PR #1030 but rebased on maintenance 0.5.x