fixed #397