uptodate null occur error, so fix