fixed #399