Fix issue 46

this should fix #46