fixed #291