Remove extra end