fixed #778: minor bug fixed
Merge pull request #779 from linshun/iss778_bugfix

fixed #778: minor bug fixed