Port fix for #802
Fix typo