fix for #303