fixes #1026
Merge pull request #1030 from borgified/fix_1026

fixes #1026