fixes regression from #2014

closes #2020