fixes #92
added test to check