fix NULL recognized string bug