Fixes malformed links