fixed issue #93, test added