Bug with the polyline tool

Im having problems with the polyline tool curve…its scattering around when i try to make a triangle

 

Would you implement a curve tool and a option to choose your pen stabilizer like flash