fixed width bug in curve rendering