fixed #382