fix regression after issue #19 resolve