Tried to fix the fixURL function