fix for #166 was passing undef for version