I'm not sure why that function was there, but it works fine without.
fixed undefined url after character edit