fix for #47