fixed wrong flank path use in some cases