fixed github issue #273

This fixes issue #273