Fix extra end