fixed #349