fixed #259, for issue #259