bug fixed in curve tool