fixes issue #163.

This should fix issue #163.