fixed bug in the issue #41, now tests is oK.