fixed error of updating local db with non acceptable url