fixing issue #2

no tests unfortunately