fixes a fight error in the engine