fix for #277