fix auto select and broken url