fixed #371