fixed #863