Make url loading work properly