fix for #1328