proposed fix for #12

proposed fix for #12