Fixes: 8a1ae40a https://bugzilla.gnome.org/show_bug.cgi?id=789880 (cherry picked from commit 5986d920)