Fixing an issue if foe is null.