fix for #141 found by @pattentrick