fixed #387