bugfix

avoids an infinite loop in test-cases.
0.6.1