fixed #687