fixes a small bug - we need more tests ;)