fixed #698