fix for issue #285