fixed bug of random display error of method of "NULL".