fix a deadloop if from ended in a /