fix missing checking.