fix bug of return null