Apply patch from bug report
https://457074.bugs.gentoo.org/attachment.cgi?id=338764