remove blank links at end