fixed #980