bug fix for #501
bug fix for #501
Merge pull request #36 from yohno/master

bug fix for #501