fix issue #48

This should fix issue #48