fix stack trace too deep when there is no initial match but it is in folder number 1