fixed some annoying issues with urls