fix the bug of return null