handle bad curve with just two points