fix for bug #920.

fixed #920