fixed extra end