fixing bug #26 and adding it to the regression suite