Fixed a bug in URL loading resulting in crashes.