fix for bug #629
Merge pull request #633 from linas/fix

fix for bug #629