Optimizing path planning by avoiding short corner tracks