fix for #351