fix #45

All tests passed