improve the return null issue in linux