Fix bug about url resolve unsuccessful