Fix for sebastinas/yafc#33

I built with this change, and it definitely fixes the issue for me.