fixed #864