fix #128

Fix for issue #128