fix #1482
Merge pull request #1551 from AndrewTsao/patch-1

fix #1482