fix foe issue #6