Fix beginnings, when same as ending.