fixing bug with https convertion to null urls