fixed bug where it wouldn't handle some links