fix null result bug