Issue32

This should fix #32 ; thanks for noticing the bug!