Make sure to pinch the ends of the loaf well before baking and tuck the ends under. This will help secure the braids so they don't come undone during baking.