Fix erroneous end