fix a bug of curves