fixed #763