Smooth curve fix