Fix #656
Merge pull request #657 from chai2010/dev

Fix #656