fix null displaying problem