Issue #2 fix wrong filename usage

Pull request for issue #2