fix #1, add test
1.0.5