Fixed some problems with moving and static foe.