Clearing Path after a and b changes

Fixed the bug that didn't clear all points from path after changing a or
b attribute