Aredmond gentoo

This is the fix I came up with, it worked for me :)