fixes issue #225

This fixes #225