minor fix for #1097