fixed the retrieve file null issue, now both pc and mac work