fixed #762