build fix
fix and test for #49