Fix bug in get_var_sample_file (missing dtype)