Small mistake fixed

I've just changed $file to $filename and $f to $file for a better overview.