fix rightmost envelope point