fix ticket 563
Merge pull request #24 from xiechao06/ticket563

fix ticket 563