fixed #970