fixed #769