fix a typo which produces an unknown local variable error.

This commit fixes a typo where filename is used but the local variable is actually file_name.