fix for pull #48