fixed #770