fix #9
Damn, I should write tests!