Fixed bug incurvatrue