Fixes issue with replacement in href