little bugfix, with test