fixed #370