fixes #947 thank you @hanleilei
Merge pull request #983 from borgified/fix_947

fixes #947 thank you @hanleilei