fix wrong var name file -> f