fix for #325