fixed #783