fix reported reversion
merged fix for regression from master