fix against https://github.com/globaleaks/GlobaLeaks/issues/585
fix against issue https://github.com/globaleaks/GlobaLeaks/issues/581