fixed the retrieve file null issue