fix bug in #8
added test
rebuilt