fix a bug that has been occurred when work.url is nil