fix bug #155, thx for this detailed bug report