fixed #761