fixed #341