fixed #246