Fix bug in loadURL