fixed #848