Bug fixed by removing Newton's method from bezier calculation.