Fix of curved edge problem - bug 2471