fix for pull #1882