Fix issue #119
This replaces the (now closed) MR 133 as I did not succeed updating the later. The first commit adds a test in the conditions causing bug #119 (closed). It fails without the 2nd commit. The second commit fixes the problem.
This replaces the (now closed) MR 133 as I did not succeed updating the later. The first commit adds a test in the conditions causing bug #119 (closed). It fails without the 2nd commit. The second commit fixes the problem.