fixed #339