fixes #37

Fixes problem first reported by Mark Rivers