fix get_file func due to memory arrangement change