Check correct file handle
Merge pull request #1 from bartpolot/patch-1

Check correct file handle